# Contributor: j.r <j.r@jugendhacker.de>
# Maintainer: j.r <j.r@jugendhacker.de>
pkgname=py3-telegram
_pyname=python-telegram
pkgver=0.18.0
pkgrel=2
pkgdesc="Python client for the Telegram's tdlib"
url="https://github.com/alexander-akhmetov/python-telegram"
arch="noarch !s390x"
license="MIT"
depends="python3 telegram-tdlib py3-telegram-text"
makedepends="py3-setuptools"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/p/python-telegram/python-telegram-$pkgver.tar.gz
	0002-Remove-binarys.patch
	"
builddir="$srcdir/$_pyname-$pkgver/"
options="!check"

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="
3137695894f8d88d71619231739601219acb3d8f4c00ab4cc6ecf79fd6aa5a36c6c025e9287d5dce03d53f75a065330d47a7a829bf6e25e29568bb9caf297d67  python-telegram-0.18.0.tar.gz
7931b19b34806fe84361d3e15fc39330e0b93f4945e7bb892b7b0c78a717a484040b5ad60d9c77063bb452badab2ada314032bfe2064918999e9e7a6863cb5c1  0002-Remove-binarys.patch
"
